package cn.edu.ujn.food.dao;

import cn.edu.ujn.food.entity.Restaurant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;
@Mapper
public interface RestaurantDao {

    Restaurant queryById(Integer restId);

    List<Restaurant> queryAllByLimit(Restaurant restaurant, @Param("pageable") Pageable pageable);

    long count(Restaurant restaurant);

    int insert(Restaurant restaurant);

    int insertBatch(@Param("entities") List<Restaurant> entities);

    int insertOrUpdateBatch(@Param("entities") List<Restaurant> entities);

    int update(Restaurant restaurant);

    int deleteById(Integer restId);

    List<Restaurant> selectAll(Restaurant restaurant);

    Integer selectCount();

    List<Restaurant> findAll();
}

